<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>

        //复杂解构
        let wangfei = {
            name: '王菲',
            age: 18,
            songs: ['红豆', '流年', '暧昧', '传奇'],
            history: [
                { name: '窦唯' },
                { name: '李亚鹏' },
                { name: '谢霆锋' }
            ]
        };


        let { name, age, songs:[one,two,three,four],history:[{name1},{name2},{name3}]}={
            name: '王菲',
            age: 18,
            songs: ['红豆', '流年', '暧昧', '传奇'],
            history: [
                { name1: '窦唯' },
                { name2: '李亚鹏' },
                { name3: '谢霆锋' }
            ]
        }
        console.log(name,age,one,two,three,four,name1,name2,name3)

    </script>
</body>

</html>